//模块接口文件，暴露给外部使用
import { request } from "./core";
import URL from "./url";
import METHOD from "./methods";

const APIClient = {
  install(Vue) {
    Vue.prototype.$API = this;
  },

  /**
   *
   * @param {*} name
   */
  login(username, password) {
    return request(METHOD.GET, URL.LOGIN, {
      username: username,
      password: password
    })
  },


};
export default APIClient;
